package org.gp.core.exception;

/**
 * Created by luoliang on 2017/1/29.
 */
public class BusinessException extends RuntimeException {
    private int code;
    public final static int DEFAULT_CODE = 1;  //1：运行通过

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
        this.code = DEFAULT_CODE;
    }

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }
}
